package com.aichan.aibi.common;

import java.io.Serial;
import java.io.Serializable;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author mengyu
 * @date 2024/03/03 9:33
 * 删除请求
 */
@Data
public class DeleteRequest implements Serializable {

    /**
     * id
     */
    @NotNull(message = "id is required")
    @Min(value = 1,message = "id must greater than 0")
    private Long id;

    @Serial
    private static final long serialVersionUID = 1L;
}